package com.siyu.controller;


import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.siyu.servicr.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    protected OrderService orderService;


    @RequestMapping("user")
    public String getUser() {
        return orderService.getUser();
    }
}
